package com.zpkj.portal;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.zpkj.base.MyMapper;
import com.zpkj.portal.conf.EnvironmentConfig;
import com.zpkj.portal.utils.AliyunOssPropertiesUtils;
import com.zpkj.portal.utils.WeixinPropertiesUtils;


@ComponentScan
@MapperScan(basePackages = { "com.zpkj.portal.dao.mapper" }, markerInterface = MyMapper.class)
@EnableDiscoveryClient
@SpringBootApplication
@EnableConfigurationProperties({ AliyunOssPropertiesUtils.class, WeixinPropertiesUtils.class, EnvironmentConfig.class })
@EnableTransactionManagement
public class ScContentApplication {

	public static void main(String[] args) {
		SpringApplication.run(ScContentApplication.class, args);
	}
}
